<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title>文件上传</title>
<script type="text/javascript" src="model/js/jquery3-min.js"></script>
</head>

<body>
	文件上传
	<form action="upfileImage.do" method="post" enctype="multipart/form-data" id="restroactive">
		<input type="file" name="file"> 
		<input type="submit" value="提交">

	</form>

</body>
<script type="text/javascript">
$("#restroactive").submit(function(event){
	event.preventDefault();
	
	$.ajax({
		type:'POST',
		url:'upfileImage.do',
		data:{
			"file":$("input[name='file'").val();
		},
		success:function(obj){
			alert(obj.msg);
		}
	})
})
</script>

</html>